{~dim key,prikey}
<form action="__URL__&a=update" method="post">
<table border="1" cellspacing="1">
{~ prikey = $prikey}
{foreach key as $item in $data}
{if key<>$prikey}
<tr>
<th>{key}</th>
<td><input type="text" name="{$item}" value="{$item}" style="width:auto"/></td> {//key的前后加双下划线，表示为一变量}
</tr>
{/if}
{/foreach}
<tr>
<td colspan="2" align="center"><input type="submit" name="submit" value="提交" /></td>
</tr>
</table>
<input type="hidden" name="序号" value="{$prikey}"> {//prikey的前后加双下划线，表示为一变量}
</form>
<p> <a href="__URL__&a=listSheet">返回</a></p>